.sensitive-words-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(4px);
}

.sensitive-words-panel {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-radius: 16px;
    padding: 0;
    width: 600px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sensitive-words-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sensitive-words-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sensitive-words-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sensitive-words-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sensitive-words-content {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.sensitive-words-config {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.sensitive-words-config h4 {
    margin: 0 0 16px 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.config-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-item label {
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.config-item input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #4ecdc4;
}

.replace-char-input {
    width: 40px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
}

.replace-char-input:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.2);
}

.sensitive-words-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.list-header h4 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.list-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.add-btn {
    background: #4ecdc4;
    color: white;
}

.add-btn:hover {
    background: #45b7d1;
    transform: translateY(-1px);
}

.import-btn {
    background: #f9ca24;
    color: #333;
}

.import-btn:hover {
    background: #f39c12;
    transform: translateY(-1px);
}

.export-btn {
    background: #6c5ce7;
    color: white;
}

.export-btn:hover {
    background: #5f3dc4;
    transform: translateY(-1px);
}

.clear-btn {
    background: #e74c3c;
    color: white;
}

.clear-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.words-list {
    max-height: 300px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state p {
    margin: 0 0 16px 0;
    font-size: 14px;
}

.empty-state button {
    background: #4ecdc4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.empty-state button:hover {
    background: #45b7d1;
    transform: translateY(-1px);
}

.word-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.word-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.word-item.disabled {
    opacity: 0.5;
}

.word-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.word-text {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.word-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.word-actions {
    display: flex;
    gap: 8px;
}

.toggle-btn,
.delete-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.toggle-btn {
    background: #f39c12;
    color: white;
}

.toggle-btn:hover {
    background: #e67e22;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

.add-form,
.import-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.add-form h4,
.import-form h4 {
    margin: 0 0 16px 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.word-input {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.word-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.word-input:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.2);
}

.import-textarea {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

.import-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.import-textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.2);
}

.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.confirm-btn,
.cancel-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.confirm-btn {
    background: #4ecdc4;
    color: white;
}

.confirm-btn:hover {
    background: #45b7d1;
    transform: translateY(-1px);
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 滚动条样式 */
.sensitive-words-content::-webkit-scrollbar,
.words-list::-webkit-scrollbar {
    width: 6px;
}

.sensitive-words-content::-webkit-scrollbar-track,
.words-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sensitive-words-content::-webkit-scrollbar-thumb,
.words-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sensitive-words-content::-webkit-scrollbar-thumb:hover,
.words-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 640px) {
    .sensitive-words-panel {
        width: 95vw;
        margin: 10px;
    }

    .sensitive-words-content {
        padding: 16px;
    }

    .list-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-btn {
        text-align: center;
    }

    .word-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .word-actions {
        justify-content: center;
    }
}